package com.wanxi.date.local;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;

public class MyLocal {
    public static void main(String[] args) {
//        Date 通用，国际时间
        LocalDate now = LocalDate.now();
        System.out.println(now);
        System.out.println(LocalDateTime.now());
        System.out.println(LocalDateTime.now(ZoneId.of("GMT")));
    }
}
